<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QJoysticks: QJoystickDevice Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QJoysticks
   </div>
   <div id="projectbrief">A simple way to use joysticks with your Qt application</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="struct_q_joystick_device-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QJoystickDevice Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a joystick and its properties.  
 <a href="struct_q_joystick_device.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_joysticks_common_8h_source.html">JoysticksCommon.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a77fdca9a6e30ef69eddbfb8e725d706a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">id</a></td></tr>
<tr class="separator:a77fdca9a6e30ef69eddbfb8e725d706a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc862e4add9e46d5126b6b5bee78b7af"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#abc862e4add9e46d5126b6b5bee78b7af">name</a></td></tr>
<tr class="separator:abc862e4add9e46d5126b6b5bee78b7af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcdb1f8f0e2ac8aab631a97c818b16a4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#afcdb1f8f0e2ac8aab631a97c818b16a4">numAxes</a></td></tr>
<tr class="separator:afcdb1f8f0e2ac8aab631a97c818b16a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdbb6c26f5656fccb2cd3afe442005e7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#abdbb6c26f5656fccb2cd3afe442005e7">numPOVs</a></td></tr>
<tr class="separator:abdbb6c26f5656fccb2cd3afe442005e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad972d8e1406fbf968751293ca2303f5b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#ad972d8e1406fbf968751293ca2303f5b">numButtons</a></td></tr>
<tr class="separator:ad972d8e1406fbf968751293ca2303f5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a484aa9ef817012b2e151f6cb12bc0a08"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_q_joystick_device.html#a484aa9ef817012b2e151f6cb12bc0a08">blacklisted</a></td></tr>
<tr class="separator:a484aa9ef817012b2e151f6cb12bc0a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a joystick and its properties. </p>
<p>This structure contains:</p><ul>
<li>The numerical ID of the joystick</li>
<li>The joystick display name</li>
<li>The number of axes operated by the joystick</li>
<li>The number of buttons operated by the joystick</li>
<li>The number of POVs operated by the joystick</li>
<li>A boolean value blacklisting or whitelisting the joystick </li>
</ul>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a484aa9ef817012b2e151f6cb12bc0a08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QJoystickDevice::blacklisted</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds <code>true</code> if the joystick is disabled </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">QJoysticks::updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="a77fdca9a6e30ef69eddbfb8e725d706a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoystickDevice::id</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds the ID of the joystick </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, <a class="el" href="class_q_joysticks.html#ad27dc9901db82add491eec3872ad37a9">QJoysticks::onAxisEvent()</a>, <a class="el" href="class_q_joysticks.html#a62f0ad5ad129f17dc04fa7c887f05094">QJoysticks::onButtonEvent()</a>, <a class="el" href="class_q_joysticks.html#a046d4f6534272ef9b162b68ca55991f6">QJoysticks::onPOVEvent()</a>, <a class="el" href="class_s_d_l___joysticks.html#a0817af463d8b74b6f8a128ab0b756617">SDL_Joysticks::rumble()</a>, and <a class="el" href="class_virtual_joystick.html#a746a7de4746074a076b00a61d7a08ea3">VirtualJoystick::setJoystickID()</a>.</p>

</div>
</div>
<a class="anchor" id="abc862e4add9e46d5126b6b5bee78b7af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QJoystickDevice::name</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds the name/title of the joystick </p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#a6690f2ee26d4018e5514af31f4050be7">QJoysticks::deviceNames()</a>, <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">QJoysticks::updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="afcdb1f8f0e2ac8aab631a97c818b16a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoystickDevice::numAxes</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds the number of axes of the joystick </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, and <a class="el" href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">QJoysticks::getNumAxes()</a>.</p>

</div>
</div>
<a class="anchor" id="ad972d8e1406fbf968751293ca2303f5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoystickDevice::numButtons</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds the number of buttons of the joystick </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, and <a class="el" href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">QJoysticks::getNumButtons()</a>.</p>

</div>
</div>
<a class="anchor" id="abdbb6c26f5656fccb2cd3afe442005e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoystickDevice::numPOVs</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Holds the number of POVs of the joystick </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">SDL_Joysticks::getJoystick()</a>, and <a class="el" href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">QJoysticks::getNumPOVs()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="_joysticks_common_8h_source.html">JoysticksCommon.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
